{extend name="default/base" /}
{block name='css'}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/mmgrid/mmGrid.css?v={$v}" />
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
<script src="__STATIC__/plugins/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class='money-head'>
  <div class='shop-logo'><img height='100' width='100'src='__RESOURCE_PATH__/{:session("WST_USER.shopImg")}'></div>
  <div class='shop-info'> 
    <div class='shopName'>{:session('WST_USER.shopName')}</div>
    <div class='shopMoney' style="margin-top: 10px;">
      <div class="usermoney">
        可用资金：<font color='red' id='shopMoney'>¥0</font>
      </div>
      <div class="cashbox">
        <span style='margin-left:20px;'><a class="btn btn-primary" id='drawBtn' href="javascript:toDrawMoney();" >申请提现</a></span>
        <span class='draw-tips'>（至少￥{:WSTConf('CONF.drawCashShopLimit')}方可提现）</span>
      </div>
      <div class="f-clear"></div>
    </div>
    <div class="f-clear"></div>
    <div class="money-rows">
      <div class="lockbox">
        冻结资金：<font color='red' id='lockMoney'>¥0</font>
      </div>
      <div class="cashbox">
        <span class="cashmoney-box">可提现金额：<font color='red' id='userCashMoney'>¥0</font></span>
      </div>
      <div class="f-clear"></div>
    </div>
  </div>
</div>
<div class='wst-user-content'>
   <div id='tab' class="wst-tab-box">
    <ul class="wst-tab-nav">
       <li>提现记录</li>
    </ul>
    <div class='wst-grid' style="margin-top: 2px;">
       <div id="mmg" class="mmg"></div>
       <div id="pg" style="text-align: right;"></div>
   </div>
    </div>

</div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__SHOP__/cashdraws/cashdraws.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script>
$(function(){
   getShopMoney();
})
</script>
{/block}